import axios from '@/libs/api.request'

// 投诉列表
export const auditTSList = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/auditTSList',
    method: 'post',
    data: data
  })
}

// 插入投诉
export const saveComplaint = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/saveComplaint',
    method: 'post',
    data: data
  })
}

export const updateComplaintInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/updateComplaintInfo',
    method: 'post',
    data: data
  })
}

export const deleteComplaintInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/deleteComplaintInfo',
    method: 'post',
    data: data
  })
}
export const getTSInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/getTSInfo',
    method: 'post',
    data: data
  })
}

// 调查列表
export const auditDcList = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/auditDcList',
    method: 'post',
    data: data
  })
}

export const getDcInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/getDcInfo',
    method: 'post',
    data: data
  })
}

export const saveSatisfaction = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/saveSatisfaction',
    method: 'post',
    data: data
  })
}

export const updateSatisfactionInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/updateSatisfactionInfo',
    method: 'post',
    data: data
  })
}

export const deleteSsatisfactionInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/deleteSsatisfactionInfo',
    method: 'post',
    data: data
  })
}

// 检查列表
export const auditJcList = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/auditJcList',
    method: 'post',
    data: data
  })
}

export const getJcInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/getJcInfo',
    method: 'post',
    data: data
  })
}

export const saveInvestigation = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/saveInvestigation',
    method: 'post',
    data: data
  })
}

export const updateInvestigationInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/updateInvestigationInfo',
    method: 'post',
    data: data
  })
}

export const deleteInvestigationInfo = (data) => {
  return axios.request({
    url: '/api/as/csc/audititemhandle/deleteInvestigationInfo',
    method: 'post',
    data: data
  })
}
